package com.syt.mall.product.feign.fallback;

import com.syt.common.exception.BizCodeEnume;
import com.syt.common.utils.R;
import com.syt.mall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

@Component
public class SecKillFeignServiceFalback implements SeckillFeignService {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        System.out.println("触发熔断");
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}